import { chinaDate } from '@src/utils';
import { FC, useEffect, useRef, useState } from 'react';
import { PublicPageSearchForm } from './component/filterSearch';
export const PublicPage: FC = () => {
  const [tiem, setTime] = useState<any>(new Date().toLocaleTimeString());
  const timer1 = useRef<any>();
  const timer2 = useRef<any>();
  useEffect(() => {
    timer1.current = setInterval(() => {
      setTime(chinaDate(new Date()).sfm);
    }, 1000);
    return () => {
      clearInterval(timer1.current);
    };
  }, []);
  return (
    <div className="pageBox fff">
      {/* <div>PublicPage{tiem}</div> */}
      <PublicPageSearchForm></PublicPageSearchForm>
    </div>
  );
};
